<input> type Attribute
Input Type | Description |
---|---|
<input type=”text”> | Single-line text input |
<input type=”password”> | Masked text input for passwords |
<input type=”checkbox”> | Toggle for selecting multiple options |
<input type=”radio”> | Single selection from multiple options |
<input type=”submit”> | Button to submit form data |
<input type=”button”> | General-purpose button |
<input type=”file”> | Input for uploading files |
<input type=”number”> | Input for numerical values |
<input type=”date”> | Input for selecting dates |
<input type=”email”> | Input for email addresses |
<input type=”color”> | Input for selecting colors |
<input type=”range”> | Slider for selecting a numeric value within a range |
<input type=”hidden”> | Hidden input for form data |
<input type=”image”> | Input using an image for form submission |
HTML input Tag
HTML <input> tag specifies an input field where the user can enter data. It’s fundamental for web forms, enabling diverse input methods like text, password, checkboxes, radio buttons, file uploads, and more. The default value accepted by the <input> Tag is text.
An input field can be of various types depending upon the attribute type. The Input tag is an empty element that only contains attributes. For defining labels for the input element, < label> can be used.
Note: The <input> Tag supports the Global Attributes & the Event Attributes in HTML.
Contact Us